﻿/**
 * console兼容性支持，防止低版本的IE报错
 * @namespace console
 * @static
 * @name console
 * @grammar console
 * @property {function} log
 * @property {function} debug
 * @property {function} info
 * @property {function} warn
 * @property {function} error
 * @property {function} assert
 * @property {function} dir
 * @property {function} dirxml
 * @property {function} group
 * @property {function} groupEnd
 * @property {function} time
 * @property {function} timeEnd
 * @property {function} count
 * @property {function} trace
 * @property {function} profile
 * @property {function} profileEnd
 * @since 2013-04-14
 */
if(!window.console){
  var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
  window.console = {};
  for (var i=0; i<names.length; i++) window.console[names[i]] = function() {};
}
